﻿using SqlSugar;

namespace qYun.Shared.Models;
[SugarTable("PlcData")]
/// <summary>
/// 
/// </summary>
public class PlcModel
{
    [SugarColumn(IsIdentity = true,IsPrimaryKey = true)]
    public int Id { get; set; }
    /// <summary>
        /// 设备运行状态
        /// </summary>
        public short DeviceStatus { get; set; }

        /// <summary>
        /// 累计运行时间（分钟）
        /// </summary>
        public short CumulativeRunTimeMinutes { get; set; }

        /// <summary>
        /// 累计运行时间（小时）
        /// </summary>
        public short CumulativeRunTimeHours { get; set; }

        /// <summary>
        /// 累计运行时间（天）
        /// </summary>
        public short CumulativeRunTimeDays { get; set; }

        /// <summary>
        /// 当前运行分
        /// </summary>
        public short CurrentRunMinutes { get; set; }

        /// <summary>
        /// 当前运行时
        /// </summary>
        public short CurrentRunHours { get; set; }

        /// <summary>
        /// 当前运行天
        /// </summary>
        public short CurrentRunDays { get; set; }

        /// <summary>
        /// 进口过滤器寿命
        /// </summary>
        public short InletFilterLife { get; set; }

        /// <summary>
        /// 出口过滤器寿命
        /// </summary>
        public short OutletFilterLife { get; set; }

        /// <summary>
        /// 出口泵运行速率
        /// </summary>
        public short OutletPumpRunRate { get; set; }

        /// <summary>
        /// 进口泵运行速度
        /// </summary>
        public short InletPumpRunSpeed { get; set; }

        /// <summary>
        /// 压力 PT01
        /// </summary>
        public float PressurePT01 { get; set; }

        /// <summary>
        /// 压力 PT02
        /// </summary>
        public float PressurePT02 { get; set; }

        /// <summary>
        /// 压力 PT03
        /// </summary>
        public float PressurePT03 { get; set; }

        /// <summary>
        /// 压力 PT04
        /// </summary>
        public float PressurePT04 { get; set; }

        /// <summary>
        /// 压力 PT05
        /// </summary>
        public float PressurePT05 { get; set; }

        /// <summary>
        /// 进口温度 TT01
        /// </summary>
        public float InletTemperatureTT01 { get; set; }

        /// <summary>
        /// 出口温度 TT02
        /// </summary>
        public float OutletTemperatureTT02 { get; set; }

        /// <summary>
        /// 加热器出口温度 TT03
        /// </summary>
        public float HeaterOutletTemperatureTT03 { get; set; }

        /// <summary>
        /// 加热器保护温度 TT04
        /// </summary>
        public float HeaterProtectionTemperatureTT04 { get; set; }

        /// <summary>
        /// 进口流量计 FT01
        /// </summary>
        public short InletFlowMeterFT01 { get; set; }

        /// <summary>
        /// 出口流量计 FT02
        /// </summary>
        public short OutletFlowMeterFT02 { get; set; }

        /// <summary>
        /// 进口过滤器 013 压差值
        /// </summary>
        public float InletFilter013PressureDifference { get; set; }

        /// <summary>
        /// 出口过滤器 010 压差值
        /// </summary>
        public float OutletFilter010PressureDifference { get; set; }

        /// <summary>
        /// 容器真空度值 DPT01
        /// </summary>
        public int ContainerVacuumDPT01 { get; set; }

        /// <summary>
        /// 变压器本体真空度 DPT02
        /// </summary>
        public int TransformerVacuumDPT02 { get; set; }

        /// <summary>
        /// 真空泵运行
        /// </summary>
        public bool VacuumPumpRunning { get; set; }

        /// <summary>
        /// 罗茨泵运行
        /// </summary>
        public bool RootsPumpRunning { get; set; }

        /// <summary>
        /// 进口泵运行
        /// </summary>
        public bool InletPumpRunning { get; set; }

        /// <summary>
        /// 出口泵运行
        /// </summary>
        public bool OutletPumpRunning { get; set; }

        /// <summary>
        /// 主电磁阀运行
        /// </summary>
        public bool MainSolenoidValveRunning { get; set; }

        /// <summary>
        /// 加热器 1 运行
        /// </summary>
        public bool Heater1Running { get; set; }

        /// <summary>
        /// 加热器 2 运行
        /// </summary>
        public bool Heater2Running { get; set; }

        /// <summary>
        /// 加热器 3 运行
        /// </summary>
        public bool Heater3Running { get; set; }

        /// <summary>
        /// 加热器 4 运行
        /// </summary>
        public bool Heater4Running { get; set; }

        /// <summary>
        /// 旁通电磁阀运行
        /// </summary>
        public bool BypassSolenoidValveRunning { get; set; }

        /// <summary>
        /// 进气电磁阀
        /// </summary>
        public bool InletSolenoidValve { get; set; }

        /// <summary>
        /// 自动运行
        /// </summary>
        public bool AutoRun { get; set; }

        /// <summary>
        /// 注油运行
        /// </summary>
        public bool OilInjectionRunning { get; set; }

        /// <summary>
        /// 排油运行
        /// </summary>
        public bool OilDischargeRunning { get; set; }

        /// <summary>
        /// 抽真空运行
        /// </summary>
        public bool VacuumRunning { get; set; }

        /// <summary>
        /// 设备运行
        /// </summary>
        public bool DeviceRunning { get; set; }

        /// <summary>
        /// 急停按钮按下
        /// </summary>
        public bool EmergencyStopPressed { get; set; }

        /// <summary>
        /// 相序报警
        /// </summary>
        public bool PhaseSequenceAlarm { get; set; }

        /// <summary>
        /// 真空泵或罗茨泵过载
        /// </summary>
        public bool VacuumOrRootsPumpOverload { get; set; }

        /// <summary>
        /// 进口泵过载或其冷却风扇过载
        /// </summary>
        public bool InletPumpOverload { get; set; }

        /// <summary>
        /// 进口变频器故障
        /// </summary>
        public bool InletInverterFault { get; set; }

        /// <summary>
        /// 出口变频器故障
        /// </summary>
        public bool OutletInverterFault { get; set; }

        /// <summary>
        /// 出口泵过载
        /// </summary>
        public bool OutletPumpOverload { get; set; }

        /// <summary>
        /// 出口泵过热
        /// </summary>
        public bool OutletPumpOverheat { get; set; }

        /// <summary>
        /// 集油盘满
        /// </summary>
        public bool OilPanFull { get; set; }

        /// <summary>
        /// 油雾分离器存油
        /// </summary>
        public bool OilMistSeparatorOilStored { get; set; }

        /// <summary>
        /// 第一组加热器过载
        /// </summary>
        public bool FirstGroupHeaterOverload { get; set; }

        /// <summary>
        /// 第二组加热器过载
        /// </summary>
        public bool SecondGroupHeaterOverload { get; set; }

        /// <summary>
        /// 第三组加热器过载
        /// </summary>
        public bool ThirdGroupHeaterOverload { get; set; }

        /// <summary>
        /// 第四组加热器过载
        /// </summary>
        public bool FourthGroupHeaterOverload { get; set; }

        /// <summary>
        /// 箱内温度高
        /// </summary>
        public bool BoxTemperatureHigh { get; set; }

        /// <summary>
        /// 泡沫多报警
        /// </summary>
        public bool FoamAlarm { get; set; }

        /// <summary>
        /// 进口泵进口压力高或低报警
        /// </summary>
        public bool InletPumpPressureHighLowAlarm { get; set; }

        /// <summary>
        /// 进口泵出口压力高报警
        /// </summary>
        public bool InletPumpOutletPressureHighAlarm { get; set; }

        /// <summary>
        /// 进口泵流量开关报警
        /// </summary>
        public bool InletPumpFlowSwitchAlarm { get; set; }

        /// <summary>
        /// 加热器出口温度高
        /// </summary>
        public bool HeaterOutletTemperatureHigh { get; set; }

        /// <summary>
        /// 出口泵压力高报警
        /// </summary>
        public bool OutletPumpPressureHighAlarm { get; set; }

        /// <summary>
        /// 出口泵流量开关报警
        /// </summary>
        public bool OutletPumpFlowSwitchAlarm { get; set; }

        /// <summary>
        /// 高液位报警
        /// </summary>
        public bool HighLiquidLevelAlarm { get; set; }

        /// <summary>
        /// 低液位报警
        /// </summary>
        public bool LowLiquidLevelAlarm { get; set; }

        /// <summary>
        /// 进口压差堵塞
        /// </summary>
        public bool InletPressureDifferenceBlocked { get; set; }

        /// <summary>
        /// 出口压差堵塞
        /// </summary>
        public bool OutletPressureDifferenceBlocked { get; set; }

        /// <summary>
        /// 设备报警
        /// </summary>
        public bool DeviceAlarm { get; set; }
        public DateTime? CreateTime { get; set; }
}